<body>
    <div>Child Frame</div>
    <button onclick="sendRequest()">send sync xhr</button>
<script>
function sendRequest() {
    var xhr = new XMLHttpRequest();
    xhr.open('POST', './resource/unreachable', false);
    function onXhrLoad()
    {
        if (!parent)
            return;
        parent.removeIframe();
        debugger; // should not stop here
    }
    xhr.addEventListener('load', onXhrLoad);
    xhr.send('foo');
}
</script>

